package org.example.service;

import org.example.entity.Author;

import java.util.List;

public interface AuthorService {

    Boolean addAuthor(Author author);

    Boolean deleteAuthor(Long authorId);

    Boolean updateAuthor(Author author);

    Author getAuthorById(Long authorId);

    Author getAuthorByName(String name);

    /**
     * 功能：模糊查找作者
     * @param field
     * @return 列表形式的作者们
     */
    List<Author> fuzzySearch(String field);
}

